<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
    body {
      width: 300px;
      padding: 20px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      margin: 0;
    }
    
    .header {
      text-align: center;
      margin-bottom: 20px;
    }
    
    .header h1 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
    }
    
    .controls {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    
    .btn {
      padding: 12px 20px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;
      text-align: center;
    }
    
    .btn-primary {
      background: #4CAF50;
      color: white;
    }
    
    .btn-primary:hover {
      background: #45a049;
      transform: translateY(-2px);
    }
    
    .btn-secondary {
      background: #f44336;
      color: white;
    }
    
    .btn-secondary:hover {
      background: #da190b;
      transform: translateY(-2px);
    }
    
    .settings {
      margin-top: 15px;
      padding: 15px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
    }
    
    .setting-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    
    .setting-item:last-child {
      margin-bottom: 0;
    }
    
    .setting-label {
      font-size: 12px;
      opacity: 0.9;
    }
    
    select, input {
      padding: 5px 8px;
      border: none;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.9);
      color: #333;
      font-size: 12px;
    }
  </style>
</head>
<body>
  <div class="header">
    <h1>🛡️ 屏幕保护器</h1>
  </div>
  
  <div class="controls">
    <button id="toggleBlur" class="btn btn-primary">启动屏保</button>
    <button id="stopBlur" class="btn btn-secondary" style="display: none;">关闭屏保</button>
    <button id="testConnection" class="btn" style="background: #666; color: white; font-size: 12px; padding: 8px 12px;">测试连接</button>
  </div>
  
  <div class="settings">
    <div class="setting-item">
      <span class="setting-label">模糊强度:</span>
      <select id="blurIntensity">
        <option value="5">轻度</option>
        <option value="10" selected>中度</option>
        <option value="20">重度</option>
      </select>
    </div>
    
    <div class="setting-item">
      <span class="setting-label">切换间隔(秒):</span>
      <input type="number" id="slideInterval" value="5" min="5" max="60" style="width: 60px;">
    </div>
    
    <div class="setting-item">
      <span class="setting-label">背景样式:</span>
      <select id="backgroundStyle">
        <option value="gradient">毛玻璃渐变</option>
        <option value="images" selected>图片轮播</option>
      </select>
    </div>
  </div>
  
  <div class="shortcuts-info">
    <div style="font-size: 11px; opacity: 0.8; margin-top: 10px; text-align: center;">
      <div style="margin-bottom: 5px;">⌨️ 快捷键</div>
      <div style="margin-bottom: 3px;">Ctrl+Shift+S: 切换屏保</div>
      <div style="margin-bottom: 3px;">Ctrl+Shift+B: 启动屏保</div>
      <div style="font-size: 10px; margin-top: 3px; opacity: 0.6;">
        (Mac: Cmd+Shift+S / Cmd+Shift+B)
      </div>
    </div>
    
    <div style="font-size: 10px; opacity: 0.7; margin-top: 8px; text-align: center; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 8px;">
      <div style="margin-bottom: 3px;">🚪 退出屏保</div>
      <div>Esc键 / F11键 / 插件按钮</div>
      <div style="font-size: 9px; margin-top: 2px; opacity: 0.5;">
        鼠标移动和普通按键不会退出
      </div>
    </div>
  </div>
  
  <script src="popup.js"></script>
</body>
</html> 